package fangzhiyi.test;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/18 19:01
 * @description
 */
 class Student {
    //属性
    public String sNo;
    public String sName;
    public String sSex;
    public int sAge;
    public double sJava;

    public Student() {
    }

    public Student(String sNo, String sName, String sSex, int sAge, double sJava) {
        this.sNo = sNo;
        this.sName = sName;
        this.sSex = sSex;
        this.sAge = sAge;
        this.sJava = sJava;
    }

    public String getsNO() {
       return sNo;
    }

    public String getsName() {
        return sName;
    }

    public String getsSex() {
        return sSex;
    }

    public int getsAge() {
        return sAge;
    }

    public double getsJava() {
        return sJava;
    }

    public void studentShow(){
        System.out.println("学号:"+sNo+"\t姓名:"+sName+"\t性别："+sSex+"\t年龄："+sAge+"\t成绩:"+sJava);
    }
}
